Add css node tests for right-to-left levelbars
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 Jan 2016 14:31:25 +0000 (09:31 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 Jan 2016 18:39:41 +0000 (13:39 -0500)
testsuite/css/nodes/Makefile.am
testsuite/css/nodes/levelbar.ltr.nodes [new file with mode: 0644]
testsuite/css/nodes/levelbar.ltr.ui [new file with mode: 0644]
testsuite/css/nodes/levelbar.nodes [deleted file]
testsuite/css/nodes/levelbar.rtl.nodes [new file with mode: 0644]
testsuite/css/nodes/levelbar.rtl.ui [new file with mode: 0644]
testsuite/css/nodes/levelbar.ui [deleted file]

index df11824d357dfb45d5ed35cd042f6bc292ad74a4..fd03078c83d0eae8ce59937d31c3fa63403f407a 100644 (file)
@@ -32,7 +32,8 @@ test_data = \
        box.rtl.ui      box.rtl.nodes           \
        buttons.ui      buttons.nodes           \
        entries.ui      entries.nodes           \
-       levelbar.ui     levelbar.nodes          \
+       levelbar.ltr.ui levelbar.ltr.nodes      \
+       levelbar.rtl.ui levelbar.rtl.nodes      \
        notebook.ui     notebook.nodes          \
        paned.ltr.ui    paned.ltr.nodes         \
        paned.rtl.ui    paned.rtl.nodes         \
diff --git a/testsuite/css/nodes/levelbar.ltr.nodes b/testsuite/css/nodes/levelbar.ltr.nodes
new file mode 100644 (file)
index 0000000..56716b1
--- /dev/null
@@ -0,0 +1,55 @@
+[window.background:dir(ltr)]
+  decoration:dir(ltr)
+  box.vertical:dir(ltr)
+    levelbar.horizontal.continuous:dir(ltr)
+      trough:dir(ltr)
+        block.high.filled:dir(ltr)
+        block.empty:dir(ltr)
+    levelbar.horizontal.continuous:dir(ltr)
+      trough:dir(ltr)
+        block.empty:dir(ltr)
+        block.high.filled:dir(ltr)
+    levelbar.horizontal.continuous:dir(ltr)
+      trough:dir(ltr)
+        block.low.filled:dir(ltr)
+        block.empty:dir(ltr)
+    levelbar.horizontal.continuous:dir(ltr)
+      trough:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.empty:dir(ltr)
+    levelbar.horizontal.discrete:dir(ltr)
+      trough:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+    levelbar.horizontal.discrete:dir(ltr)
+      trough:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
+    levelbar.horizontal.discrete:dir(ltr)
+      trough:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.full.filled:dir(ltr)
+        block.empty:dir(ltr)
+        block.empty:dir(ltr)
diff --git a/testsuite/css/nodes/levelbar.ltr.ui b/testsuite/css/nodes/levelbar.ltr.ui
new file mode 100644 (file)
index 0000000..1338289
--- /dev/null
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkBox">
+        <property name="visible">True</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.5</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="inverted">True</property>
+            <property name="value">0.5</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.2</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.8</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">5</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">2</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">8</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/css/nodes/levelbar.nodes b/testsuite/css/nodes/levelbar.nodes
deleted file mode 100644 (file)
index 56716b1..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-[window.background:dir(ltr)]
-  decoration:dir(ltr)
-  box.vertical:dir(ltr)
-    levelbar.horizontal.continuous:dir(ltr)
-      trough:dir(ltr)
-        block.high.filled:dir(ltr)
-        block.empty:dir(ltr)
-    levelbar.horizontal.continuous:dir(ltr)
-      trough:dir(ltr)
-        block.empty:dir(ltr)
-        block.high.filled:dir(ltr)
-    levelbar.horizontal.continuous:dir(ltr)
-      trough:dir(ltr)
-        block.low.filled:dir(ltr)
-        block.empty:dir(ltr)
-    levelbar.horizontal.continuous:dir(ltr)
-      trough:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.empty:dir(ltr)
-    levelbar.horizontal.discrete:dir(ltr)
-      trough:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-    levelbar.horizontal.discrete:dir(ltr)
-      trough:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
-    levelbar.horizontal.discrete:dir(ltr)
-      trough:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.full.filled:dir(ltr)
-        block.empty:dir(ltr)
-        block.empty:dir(ltr)
diff --git a/testsuite/css/nodes/levelbar.rtl.nodes b/testsuite/css/nodes/levelbar.rtl.nodes
new file mode 100644 (file)
index 0000000..cfe18b9
--- /dev/null
@@ -0,0 +1,55 @@
+[window.background:dir(rtl)]
+  decoration:dir(ltr)
+  box.vertical:dir(rtl)
+    levelbar.horizontal.continuous:dir(rtl)
+      trough:dir(rtl)
+        block.empty:dir(rtl)
+        block.high.filled:dir(rtl)
+    levelbar.horizontal.continuous:dir(rtl)
+      trough:dir(rtl)
+        block.high.filled:dir(rtl)
+        block.empty:dir(rtl)
+    levelbar.horizontal.continuous:dir(rtl)
+      trough:dir(rtl)
+        block.empty:dir(rtl)
+        block.low.filled:dir(rtl)
+    levelbar.horizontal.continuous:dir(rtl)
+      trough:dir(rtl)
+        block.empty:dir(rtl)
+        block.full.filled:dir(rtl)
+    levelbar.horizontal.discrete:dir(rtl)
+      trough:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+    levelbar.horizontal.discrete:dir(rtl)
+      trough:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+    levelbar.horizontal.discrete:dir(rtl)
+      trough:dir(rtl)
+        block.empty:dir(rtl)
+        block.empty:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
+        block.full.filled:dir(rtl)
diff --git a/testsuite/css/nodes/levelbar.rtl.ui b/testsuite/css/nodes/levelbar.rtl.ui
new file mode 100644 (file)
index 0000000..1338289
--- /dev/null
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkBox">
+        <property name="visible">True</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.5</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="inverted">True</property>
+            <property name="value">0.5</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.2</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.8</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">5</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">2</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">8</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/css/nodes/levelbar.ui b/testsuite/css/nodes/levelbar.ui
deleted file mode 100644 (file)
index 1338289..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
-  <!-- interface-requires gtk+ 3.0 -->
-  <object class="GtkWindow" id="window1">
-    <property name="can_focus">False</property>
-    <property name="type">popup</property>
-    <child>
-      <object class="GtkBox">
-        <property name="visible">True</property>
-        <property name="orientation">vertical</property>
-        <child>
-          <object class="GtkLevelBar">
-            <property name="visible">True</property>
-            <property name="value">0.5</property>
-          </object>
-        </child>
-        <child>
-          <object class="GtkLevelBar">
-            <property name="visible">True</property>
-            <property name="inverted">True</property>
-            <property name="value">0.5</property>
-          </object>
-        </child>
-        <child>
-          <object class="GtkLevelBar">
-            <property name="visible">True</property>
-            <property name="value">0.2</property>
-          </object>
-        </child>
-        <child>
-          <object class="GtkLevelBar">
-            <property name="visible">True</property>
-            <property name="value">0.8</property>
-          </object>
-        </child>
-        <child>
-          <object class="GtkLevelBar">
-            <property name="visible">True</property>
-            <property name="min-value">0</property>
-            <property name="max-value">10</property>
-            <property name="value">5</property>
-            <property name="mode">discrete</property>
-          </object>
-        </child>
-        <child>
-          <object class="GtkLevelBar">
-            <property name="visible">True</property>
-            <property name="min-value">0</property>
-            <property name="max-value">10</property>
-            <property name="value">2</property>
-            <property name="mode">discrete</property>
-          </object>
-        </child>
-        <child>
-          <object class="GtkLevelBar">
-            <property name="visible">True</property>
-            <property name="min-value">0</property>
-            <property name="max-value">10</property>
-            <property name="value">8</property>
-            <property name="mode">discrete</property>
-          </object>
-        </child>
-      </object>
-    </child>
-  </object>
-</interface>